from django.db import models


# 角色表
class AdminRole(models.Model):
    name = models.CharField(max_length=32, verbose_name='角色名称')
    auth = models.TextField(null=True, blank=True, verbose_name='权限')
    ord = models.PositiveIntegerField(default=0, verbose_name='排序')
    is_delete = models.BooleanField(default=False, verbose_name='是否删除 1删除 0正常')

    class Meta:
        db_table = 'zeus_admin_role'
        verbose_name = '角色'
        verbose_name_plural = verbose_name

        def __str__(self):
            return self.name
